package cn.iocoder.yudao.module.wms.controller.admin.productionorder.vo;

import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
import cn.iocoder.yudao.module.wms.dal.dataobject.person.PersonDO;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.VO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 生产任务单主表 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductionOrderRespVO implements VO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26965")
    @ExcelProperty("id")
    private Long id;

    @Schema(description = "流水号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("流水号")
    private String serialNumber;

    @Schema(description = "部门id", example = "20374")
    @Trans(type = TransType.SIMPLE, target = DeptDO.class, fields = "name", ref = "deptName")
    @ExcelProperty("部门id")
    private Long deptId;
    private String deptName;
    @Schema(description = "订单日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单日期")
    private LocalDateTime orderDate;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "审核人")
    @ExcelProperty("审核人")
    private String auditor;

    @Schema(description = "审核时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("审核时间")
    private LocalDateTime auditTime;
    /***
     * 生产数量
     */
    private Double number;

    /***
     * 已生产数量
     */
    private Double producedNumber;

    /**
     * 审批结果
     *
     * 枚举 {@link}
     * 考虑到简单，所以直接复用了 BpmProcessInstanceStatusEnum 枚举，也可以自己定义一个枚举哈
     */
    private Integer status;

    /**
     * 对应的流程编号
     *
     * 关联 ProcessInstance 的 id 属性
     */
    private String processInstanceId;
}